import Vue from 'vue'

export default Vue.mixin({
    methods: {
        hasAuth(auth) {
            let authority = this.$store.state.menu.authorities
            return authority.indexOf(auth) > -1
        }
    }
})
